package com.schoolhelper.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.*;

/**
 * (TDiscuss)表实体类
 *
 * @author makejava
 * @since 2021-04-23 21:03:22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TDiscuss extends Model<TDiscuss> {

    //评论id
    @TableId(type = IdType.AUTO)
    private Long discussId;

    //评论的订单的id
    private Long orderId;

    //发表评论的人的id
    private Integer userId;

    //回复的评论id，如果为空，就是直接评论
    private Long replyDiscussId;

    //评论正文
    private String discussText;

    //评论的时间
    private Date discussDatetime;
}
